const Router = require('koa-router')

const enterpriseController = require('../../controllers/enterprise')

const m = require('../../middlewares/admin_auth')

const router = new Router({ prefix: '/admin/api/v1/enterprise' })


router.get('/getList', m.auth,enterpriseController.list);


router.post('/create', m.auth,enterpriseController.create)


router.get('/detail/:id',m.auth, enterpriseController.detail)


router.delete('/:id', m.auth, enterpriseController.delete)


router.patch('/:id', m.auth, enterpriseController.update)

router.get('/getEnterpriseScaleMap',enterpriseController.getEnterpriseScaleMap);

router.get('/getEnterpriseScaleList',enterpriseController.getEnterpriseScaleList);

router.get('/getEnterpriseIndustryMap',enterpriseController.getEnterpriseIndustryMap);

router.get('/getEnterpriseIndustryList',enterpriseController.getEnterpriseIndustryList);

router.get("/getDictByEnterprise",m.auth, enterpriseController.getDictByEnterprise);

router.get("/dict/sendMsgStatus", m.auth, enterpriseController.getDict2SendMsgStatus)

module.exports = router
